package com.ruoyi.system.domain.fx;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.List;

/**
 * 订单项目对象 fx_order_item
 *
 * @author ruoyi
 * @date 2024-07-23
 */
@Data
public class FxOrderItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单id */
    @Excel(name = "订单id")
    private String orderId;

    /** 商品分类id */
    @Excel(name = "商品分类id")
    private Long goodTypeId;

    /** 商品分类名称 */
    @Excel(name = "商品分类名称")
    private String goodTypeName;

    /** 供应商商品id */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long supplierGoodId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long storeGoodId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodName;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal goodPrice;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private String goodCount;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /**
     * 商品图片
     */
    @Excel(name = "商品图片")
    private String goodImg;
    // 订单id
    private List<String> orderIds;
    // 商品id
    private List<Long> goodIds;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderId(String orderId)
    {
        this.orderId = orderId;
    }

    public String getOrderId()
    {
        return orderId;
    }
    public void setGoodTypeId(Long goodTypeId)
    {
        this.goodTypeId = goodTypeId;
    }

    public Long getGoodTypeId()
    {
        return goodTypeId;
    }
    public void setGoodTypeName(String goodTypeName)
    {
        this.goodTypeName = goodTypeName;
    }

    public String getGoodTypeName()
    {
        return goodTypeName;
    }
    public void setSupplierGoodId(Long supplierGoodId)
    {
        this.supplierGoodId = supplierGoodId;
    }

    public Long getSupplierGoodId()
    {
        return supplierGoodId;
    }
    public void setStoreGoodId(Long storeGoodId)
    {
        this.storeGoodId = storeGoodId;
    }

    public Long getStoreGoodId()
    {
        return storeGoodId;
    }
    public void setGoodName(String goodName)
    {
        this.goodName = goodName;
    }

    public String getGoodName()
    {
        return goodName;
    }
    public void setGoodPrice(BigDecimal goodPrice)
    {
        this.goodPrice = goodPrice;
    }

    public BigDecimal getGoodPrice()
    {
        return goodPrice;
    }
    public void setGoodCount(String goodCount)
    {
        this.goodCount = goodCount;
    }

    public String getGoodCount()
    {
        return goodCount;
    }
    public void setRemarks(String remarks)
    {
        this.remarks = remarks;
    }

    public String getRemarks()
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("goodTypeId", getGoodTypeId())
            .append("goodTypeName", getGoodTypeName())
            .append("supplierGoodId", getSupplierGoodId())
            .append("storeGoodId", getStoreGoodId())
            .append("goodName", getGoodName())
            .append("goodPrice", getGoodPrice())
            .append("goodCount", getGoodCount())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remarks", getRemarks())
            .toString();
    }
}
